
define(["Zepto", 
        "underscore", 
        "Backbone", 
        "Handlebars",  
        "text!templates/university/universitylistitem.html" ,
        "views/common/menuview"
], function($, _, Backbone, Handlebars, template, MenuView) {
	
    var UniversityListItemView = Backbone.View.extend({

        template: Handlebars.compile(template),

        initialize: function() {
            this.model.bind("change", this.render, this);
            this.model.bind("destroy", this.close, this);
        },

        render: function(eventName) {
        
            $(this.el).html(this.template(this.model.toJSON()));
            
            // menu top
			this.menutop = new MenuView({
				el : $('#menu', this.el),
				model : this.model
			});
			this.menutop.render();
        	
            return this;
        }
    });


    return UniversityListItemView;

});

